home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
kermit.columbia.edu
/
kermit.columbia.edu.tar
/
kermit.columbia.edu
/
newsgroups
/
misc.19971216-19980424
/
000215_news@newsmaster….columbia.edu _Thu Feb 12 12:41:36 1998.msg
< prev
next >
Wrap
Internet Message Format
|
1998-04-22
|
2KB
Return-Path: <news@newsmaster.cc.columbia.edu>
Received: from newsmaster.cc.columbia.edu (newsmaster.cc.columbia.edu [128.59.35.30])
by watsun.cc.columbia.edu (8.8.5/8.8.5) with ESMTP id MAA04203
for <kermit.misc@watsun.cc.columbia.edu>; Thu, 12 Feb 1998 12:41:36 -0500 (EST)
Received: (from news@localhost)
by newsmaster.cc.columbia.edu (8.8.5/8.8.5) id MAA07395
for kermit.misc@watsun; Thu, 12 Feb 1998 12:41:35 -0500 (EST)
Path: news.columbia.edu!panix!nntprelay.mathworks.com!newsfeed.internetmci.com!4.1.16.34!cpk-news-hub1.bbnplanet.com!su-news-hub1.bbnplanet.com!news.bbnplanet.com!news.Stanford.EDU!nntp.Stanford.EDU!not-for-mail
From: Stewart Levin <stew@sep.stanford.edu>
Newsgroups: comp.protocols.kermit.misc
Subject: "Flushing" input characters during scripting?
Date: Thu, 12 Feb 1998 09:20:26 -0800
Organization: Stanford Exploration Project
Lines: 31
Message-ID: <34E32F5A.36AF@sep.stanford.edu>
References: <rm4t26x9fk.fsf@fluent.com> <6bsspi$nin$1@apakabar.cc.columbia.edu> <rm1zx9y9cz.fsf@fluent.com>
NNTP-Posting-Host: panum.stanford.edu
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-Mailer: Mozilla 3.0Gold (X11; I; HP-UX B.10.01 9000/712)
Xref: news.columbia.edu comp.protocols.kermit.misc:8401
[ Latest kermit, RedHat Linux 3 (not the latest) on a Gateway 2000 PC. ]
Over a dialup connection, I am feeding a short list
of items to a text-based application that reformats and
standardizes them against a database. Using the INPUT
and OUTPUT commands to control the flow, I capture the
relevant lines of application response to a log file
from whence I extract the updated items offline.
One ugly hack I'd like to get rid of is using an
INPUT 1 ZZZZZ
to flush characters arriving after an end-of-item line
and before a subsequent item input prompt. Without it,
the kermit application quickly hangs, presumably because
of buffer limits. Is there a better solution? (Yes,
I did try a couple of commands in the reference manual
that reset or flush internal buffers.)
Also, I found that when I wrote my test scripts to include
fully-spelled out kermit commands and fully checking
all status codes, the script produced wierd error messages.
Abbreviating the commands made the problem go away.
Any tips on other ways to conserve scripting buffer space?
Embedded TAKE commands? Looping macros versus straight line
expansion?
- Stew Levin
stew@sep.stanford.edu